package com.learn.practice.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration

public class KafkaConfiguration {
    public static final String SPRING_BOOT_TEST_TOPIC = "spring-boot-test-topic";

    @Bean
    public NewTopic testTopic() {
        return new NewTopic(SPRING_BOOT_TEST_TOPIC, 4, (short) 1);
    }
}